import java.util.Scanner;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/8 16:17
 * @copyright: 博为峰
 */
public class Demo08 {
    public static void main(String[] args) {
        /*Scanner scanner = new Scanner(System.in);
        String s1 = scanner.nextLine();
        System.out.println("s1 = " + s1);
        String s2 = scanner.nextLine();
        System.out.println("s2 = " + s2);*/

        //接收用户输入的两个数，交互，并输出
        System.out.println("请输入第一个数");
        Scanner scanner = new Scanner(System.in);
        String s1 = scanner.nextLine();
        System.out.println("请输入第二个数");
        String s2 = scanner.nextLine();

        System.out.println("s1 = " + s1);
        System.out.println("s2 = " + s2);

        String s3 = s1;
        s1 = s2;
        s2 = s3;

        System.out.println("s1 = " + s1);
        System.out.println("s2 = " + s2);


    }
}
